//
//  ViewController.m
//  Runtime
//
//  Created by 周成龙 on 16/6/19.
//  Copyright © 2016年 none. All rights reserved.
//

#import "ViewController.h"

#import <objc/runtime.h>
#import <objc/message.h>


#import "Person.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    Person *p = [[Person alloc] init];
    p.age = 01;
    
    [p save];
}

- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event
{
    NSLog(@"\nage == %d", [Person queryModel].age);
}

- (IBAction)button:(id)sender {
    [Person deleteUserInfoFile];
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
